package com.aaa.service.impl;

import com.aaa.dao.CityDao;
import com.aaa.entity.City;
import com.aaa.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService {

    @Autowired
    CityDao cd;
    @Override
    public List<City> findCity(int pid,String cityName) {
        return cd.findCity(pid,cityName);
    }

    @Override
    public City findCityById(int cityId) {
        return cd.findCityById(cityId);
    }

    @Override
    public int updateCity(City city) {
        return cd.updateCity(city);
    }
}
